#include <stdio.h>

int* divmod(int dividend, int divisor){
    int quotient,remainder;
    quotient=dividend/divisor;
    remainder=dividend%divisor;
    static int result[2];
    result[0]=quotient;
    result[1]=remainder;
    return result;
}

int main(){
    int dividend,divisor,*result;
    printf("Enter two numbers: ");
    scanf("%d %d",&dividend,&divisor);
    result=divmod(dividend,divisor);
    printf("%d,%d\n",result[0],result[1]);
    return 0;
}
